package com.rui.patterns.decorator;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : FastFood
 * @createTime : [2022/2/22 16:11]
 * @description : [快餐类(抽象构建角色)]
 */

public abstract class FastFood {

    /**
     * 价格
     */
    private float price;

    /**
     * 描述
     */
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public abstract float cost();
}
